{% extends "base.html" %}

{% block title %}欢迎加入畜牧大集网{% endblock %}

{% block content %}
<div class="row">
    <table cellpadding="5" align="center">
    <form action="" method="POST">
    {% csrf_token %}
    <tr height="50">
        <td colspan="2">
        <h1 style="font-size:18px;">欢迎加入畜牧大集网</h1>
        </td>
    </tr>
    <tr height="25">
        <td><label for="id_username">用户名:</label></td>
        <td>{{ form.username }} <span style="color:red">*</span> <small>不多于30个字符。只能用字母、数字和字符 @/./+/-/_ 。</small></td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td style="color:red;">{{ form.username.errors }}</td>
    </tr>
    <tr height="25">
        <td><label for="id_email">邮　箱:</label></td>
        <td>{{ form.email }} <span style="color:red">*</span></td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td style="color:red;">{{ form.email.errors }}</td>
    </tr>
    <tr height="25">
        <td><label for="id_password1">密　码:</label></td>
        <td>{{ form.password1 }} <span style="color:red">*</span></td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td style="color:red;">{{ form.password1.errors }}</td>
    </tr>
    <tr height="25">
        <td width="60"><label for="id_password2">密码确认:</label></td>
        <td>{{ form.password2 }} <span style="color:red">*</span> <small>为了校验，输入与上面相同的密码。</small></td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td style="color:red;">{{ form.password2.errors }}</td>
    </tr>
    <tr>
    <td colspan="2"><input name="sign-up" id="sign-up" type="submit" value="创建账号"  class="btn btn-primary" /></td>
    </tr>
    </table>
    </form>
</div>
{% endblock %}
